
#!/bin/bash
function func1(){
      echo this is an example of a function
}

count=1

while [ $count -le 5 ]
do
func1
count=$[ $count+1 ]
done

echo end of loop
func1
echo end of script

